package com.zd.service.lmpl;/**
 * @Description: Deliveryverificationlmpl
 * @Author:pioneer
 * @Date: 2021-07-28
 * @Version:v1.0
 */

import com.zd.mapper.DeliveryverificationMapper;
import com.zd.service.lnter.Deliveryverificationlnter;
import com.zzg.entity.Deliveryverification;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Description: Deliveryverificationlmpl
 * @Author:pioneer
 * @Date: 2021-07-28
 * @Version:v1.0
 */
@Service
public class Deliveryverificationlmpl implements Deliveryverificationlnter {
    @Autowired
    public DeliveryverificationMapper deliveryverificationMapper;
    /**
     * 查询提货核销列表所有信息
     *
     * @return
     */
    @Override
    public List<Deliveryverification> queryDeliveryverification() {
        return deliveryverificationMapper.queryDeliveryverification ();
    }

    /**
     * 分页查询提货核销列表相关的所有信息
     *
     * @param page  页码
     * @param entry 条目数
     * @return 提货核销列表集合
     */
    @Override
    public List<Deliveryverification> pagingqueryDeliveryverification(int page, int entry) {
        return deliveryverificationMapper.pagingqueryDeliveryverification ((page-1)*entry,entry);
    }

    /**
     * 根据原运单号查询提货核销
     *
     * @param waybillid 运单id
     * @return 提货核销对象
     */
    @Override
    public Deliveryverification getDeliveryverificationByid(String waybillid) {
        return deliveryverificationMapper.getDeliveryverificationByid (waybillid);
    }

    /**
     * 根据搜索条件查询提货核销
     *
     * @param deliveryverification 提货核销对象
     * @return 提货核销列表集合
     */
    @Override
    public List<Deliveryverification> conditionDeliveryverification(Deliveryverification deliveryverification) {
        return deliveryverificationMapper.conditionDeliveryverification (deliveryverification);
    }

    /**
     * 根据搜索条件查询提货核销并分页
     *
     * @param deliveryverification 提货核销对象
     * @param page                 页码
     * @param entry                条目数
     * @return 提货核销列表集合
     */
    @Override
    public List<Deliveryverification> conditionpaginatedDeliveryverification(Deliveryverification deliveryverification, int page, int entry) {
        return deliveryverificationMapper.conditionpaginatedDeliveryverification (deliveryverification,(page-1)*entry,entry);
    }
}
